package com.stu_ques.demo.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.concurrent.SynchronousQueue;

import com.stu_ques.common.util.DateUtil;

public class Dynasty implements Serializable
{
	private int id;
	private String name;
	private String capital;
	private short age;
	private Date st;
	private Date createTime;
	private Date updateTime;
	/*生成读写器*/
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public String getCapital()
	{
		return capital;
	}
	public void setCapital(String capital)
	{
		this.capital = capital;
	}
	public short getAge()
	{
		return age;
	}
	public void setAge(short age)
	{
		this.age = age;
	}
	public Date getSt()
	{
		return st;
	}
	public void setSt(Date st)
	{
		this.st = st;
	}
	public Date getCreateTime()
	{
		return createTime;
	}
	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}
	public Date getUpdateTime()
	{
		return updateTime;
	}
	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}
	@Override
	public String toString()
	{
		DateUtil dateUtil = new DateUtil();
		
		String str = this.getId() + "\t"+ this.getName() +
				"\t"+ this.getCapital() +"\t"+ this.getAge() +"\t"+ 
				dateUtil.dateString(this.getSt())+
				"\t"+ dateUtil.dateTimeString(this.getCreateTime())+
				"\t" + dateUtil.dateTimeString(this.getUpdateTime());
		return str ;
	}
}
